package com.sunwoda.springbootredis.controller;

import com.sunwoda.springbootredis.entity.RequestOrderLine;
import com.sunwoda.springbootredis.service.RequestOrderLineService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * (RequestOrderLine)表控制层
 *
 * @author makejava
 * @since 2021-09-23 14:22:28
 */
@RestController
@RequestMapping("requestOrderLine")
public class RequestOrderLineController {
    /**
     * 服务对象
     */
    @Resource
    private RequestOrderLineService requestOrderLineService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public RequestOrderLine selectOne(Integer id) {
        return this.requestOrderLineService.queryById(id);
    }

}
